from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from .apis import api
from django.conf import settings
from utils.testrequest import api as test_api
from goods.CRUDApi import api as crudapi


urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/', api.urls),
    # CRUD快速api示例
    path('skus/', crudapi.urls),

    # CDEditor入口
    path('ckeditor/', include('ckeditor_uploader.urls')),
    path('test/', test_api.urls),
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
